<?php
	include 'connection.php';
	$q=$_GET['q'];
	$my_data=mysql_real_escape_string($q);
	$sql="SELECT t.* FROM type_assets t WHERE t.name like '".$my_data."%';";

	$result = mysql_query($sql);
	
	if($result)
	{
		while($row=mysql_fetch_array($result))
		{
			echo $row['name']."\n";
		}
	}
	mysql_close($connection);
?>